<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
</html>
<h1>f12查看效果</h1>
<script src="./utils.js"></script>

<h1>日期格式化</h1>
<div id="demo1"></div>
<script>
var result = ''
result += "dateFormat('2017-3-3 5:18:19') // "+dateFormat('2017-3-3 5:18:19') + "<br />"
result += "dateFormat('2017-3-3 5:18:19') // "+dateFormat('2017-3-3 5:18:19') + "<br />"
result += "dateFormat('2017-3-3 5:18:19') // "+dateFormat('2017-3-3 5:18:19') + "<br />"
result += "dateFormat('2017-3-3 5:18:19') // "+dateFormat('2017-3-3 5:18:19') + "<br />"
document.querySelector('#demo1').innerHTML = result
</script>


<h1>快速获取当前时间</h1>
<div id="demo2"></div>
<script>
var result = ''
result += "format('YmdHis') // "+format('YmdHis') + "<br />"
result += "format('Y-m-d H:i:s') // "+format('Y-m-d H:i:s') + "<br />"
result += "format('Y-m-d ') // "+format('Y-m-d') + "<br />"
document.querySelector('#demo2').innerHTML = result
</script>